<?php
// Config files
include('_config.php');
include('system/View.php');
include('system/Controller.php');
include('system/Model.php');
include('system/WebSiteLog.php');
include('system/Application.php');

$WebSiteLogObj = new WebSiteLog(APPLICATION_PATH . 'dfiles/logs/');

// Make the database connection.
$dbConnOne = @mysql_connect(_HOST, _USERNAME, _PASSWORD);
if(!$dbConnOne)
{
   die('Could not connect to the database');
}
else
{
	$res = mysql_select_db(_DBNAME, $dbConnOne);
	if (!$res)
	{
		die('Could not select the database');
	}
}
?>